package org.team4.dao;

import org.hibernate.SessionFactory;
import org.team4.domain.Users;

import org.team4.dao.GenericDAO;
import org.team4.dao.UsersDAO;

/**
 * <p>程序名称：       UsersDAO.java</p>
 * <p>程序说明：       用户DAO</p>
 * <p>版权信息：       Copyright 深圳市维远泰克科技有限公司</p>
 * <p>时间：          Jan 20, 2011 3:03:43 PM</p>	
 * 
 * @author：          Marker.King
 * @version：         Ver 0.1
 */
public class UsersDAO extends GenericDAO<Users> {

	private static final long serialVersionUID = -2510323844187127893L;
	private static UsersDAO instance;

	public static UsersDAO getInstance(SessionFactory sessionFactory) {
        if(instance == null) {
        	instance =  new UsersDAO(sessionFactory);
        }
        return instance;
    }
	
	private UsersDAO(SessionFactory sessionFactory) {
		super(sessionFactory, Users.class);
	}
}
